@import "../../../styles/base";

.GameKingRank-rule {
  color: white;
  padding-top: tovw(750);
  padding-bottom: tovw(60);
  background: #230B31 url("./../images/banner.png") top center / 100% no-repeat;
  min-height: 100vh;
  position: relative;

  .return-btn {
    font-size: tovw(24);
    color: #FFFFFF;
    letter-spacing: 0;
    font-weight: 500;
    position: absolute;
    top: tovw(402);
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: tovw(134);
    height: tovw(67);
    background-image: linear-gradient(180deg, #A3655C 0%, #71231A 100%);
    border: 1px solid rgba(255,233,147,1);
    box-shadow: 0 tovw(4) 0 0 rgba(48,0,0,0.66);
    border-radius: tovw(12);
  }

  .record-btn {
    font-size: tovw(24);
    color: #FFFFFF;
    letter-spacing: 0;
    font-weight: 500;
    position: absolute;
    top: tovw(310);
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: tovw(197);
    height: tovw(67);
    background-image: linear-gradient(180deg, #A3655C 0%, #71231A 100%);
    border: 1px solid rgba(255,233,147,1);
    box-shadow: 0 tovw(4) 0 0 rgba(48,0,0,0.66);
    border-radius: tovw(12);
  }

  main {
    position: relative;
    overflow: hidden;
    background: url("./../images/bg-header.png") center top / 100% no-repeat,
    url("./../images/bg-mid.png") center tovw(240) / 100% repeat-y, #230B31;
    margin-top: -15.5vw;
    padding: 10vw 6vw 0;
    min-height: tovw(750);
  }

  .bg-bottom {
    position: absolute;
    left: 0;
    right: 0;
    background: url("./../images/bg-bottom.png") center bottom / 100% no-repeat;
    height: 8vw
  }

  .time-msg {
    font-size: tovw(36);
    color: #FFF97F;
    text-align: center;
    text-shadow: 0 tovw(2) tovw(4) rgba(0, 0, 0, 0.50);
    font-weight: 500;
    margin-top: -12vw;
    padding: 2vw;
  }

  .parent-tabs {
    padding: 0 4.4vw;
    margin-bottom: 3.2vw;
    margin-top: 3.2vw;
    position: sticky;
    top: 0;
    z-index: 10;
    left: 2.3vw;
    right: 2.3vw;
    display: flex;
    justify-content: space-between;

    li {
      width: 49.5%;
      height: tovw(100);
      font-size: tovw(36);
      color: #3B0200;
      text-align: center;
      font-weight: 600;
      background: url("./../images/tab.png") center center / 100% no-repeat;
      transition: all .2s ease;
      display: flex;
      align-items: center;
      justify-content: center;

      &.active {
        color: #3B0200;
        background-image: url("./../images/tab-active.png");
      }

      &::before {
        display: none;
      }
    }
  }

  .diamond {
    text-align: right;
    display: inline-block;
    height: tovw(40);
    line-height: tovw(40);
    background: url("./../images/diamond.png") right center / tovw(28) no-repeat;
    padding-right: tovw(36);
  }

  .coin {
    text-align: right;
    display: inline-block;
    height: tovw(40);
    line-height: tovw(40);
    background: url("./../images/coin.png") right center / tovw(28) no-repeat;
    padding-right: tovw(36);
  }

  table {
    width: 100%;
    background: rgba(56,20,8,0.80);
    outline: rgba(255,226,173,0.8);
    border-radius:  tovw(10);
    margin-bottom: tovw(15);
    margin-top: tovw(30);
    border-collapse: collapse;
    overflow: hidden;
    border-style:hidden;
    box-shadow: 0 0 0 tovw(1) rgba(255,226,173,0.8);

    th {
      height: tovw(64);
      color: #FFE187;
      text-align: center;
      font-weight: 500;
    }

    td {
      height: tovw(90);
      font-size: 22px;
      color: #FFFFFF;
      text-align: center;
      line-height: 40px;
      font-weight: 700;
    }

    th, td {
      font-size: tovw(22);
      text-align: center;
      border: tovw(1) solid rgba(255,226,173,0.8);
    }
  }

  .rule {
    padding: tovw(40) 0;
    .coin-diamond {
      width: tovw(200);
      height: tovw(44);
      background: #4F0800;
      border: tovw(1) solid rgba(170,98,75,1);
      border-radius: 0 tovw(100) tovw(100) 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: tovw(24);
      color: #FFF6A5;
      font-weight: 500;
    }

    .rule-title {
      height: tovw(40);
      font-size: tovw(24);
      color: #FFE187;
      line-height: tovw(40);
      font-weight: 500;
      padding: tovw(14) 0;
      margin: tovw(15) 0;
    }

    .rule-content {
      padding: 0 tovw(20);

      .text {
        font-size: tovw(20);
        color: #FFFFFF;
        font-weight: 700;
      }

      ul {
        li {
          padding-top: tovw(15);
          list-style: disc inside;
          font-size: tovw(20);
          color: #FFFFFF;
          font-weight: 500;
          text-align: justify;

          p {
            padding-left: tovw(24);
            padding-top: tovw(15);
          }
        }
      }

      table {
        .diamond, .coin {
          width: tovw(100);
        }
      }
    }

    .gift {
      white-space: nowrap;
      width: tovw(140);
      height: tovw(82);
      line-height: tovw(82);
      padding-left: tovw(90);
      display: inline-block;
      margin: 0 tovw(10);
    }

    .gift-1 {
      background: url("./../images/gift-1.png") left center / tovw(82) no-repeat;
    }
    .gift-2 {
      background: url("./../images/gift-2.jpeg") left center / tovw(82) no-repeat;
    }
    .gift-3 {
      background: url("./../images/gift-3.jpeg") left center / tovw(82) no-repeat;
    }
    .gift-4 {
      background: url("./../images/gift-4.png") left center / tovw(82) no-repeat;
    }
    .gift-5 {
      background: url("./../images/gift-5.png") left center / tovw(82) no-repeat;
    }
  }

  .award {
    padding: tovw(20);
    .title {
      width: 50vw;
      text-align: center;
      font-size: tovw(32);
      color: #FFF6A5;
      font-weight: 500;
      background: url("./../images/decorator.png") center left / tovw(25) no-repeat,
      url("./../images/decorator.png") center right / tovw(25) no-repeat;
      margin: 5vw auto;

      &.daily-list-msg {
        width: 70vw;
        font-size: tovw(24);
      }
    }

    table {
      .diamond {
        width: tovw(150);
      }
    }
  }

  .info {
    text-align: center;
    font-size: tovw(22);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0;
    font-weight: 700;
    padding-bottom: tovw(30);
  }
}
